//
//  ZZCAboutOurController.m
//  ZZC-Finance
//
//  Created by mac on 2017/5/25.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "ZZCAboutOurController.h"

@interface ZZCAboutOurController ()
@property (weak, nonatomic) IBOutlet UITextView *contentView;

@end

@implementation ZZCAboutOurController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self requestAboutOurData];
}

- (void)requestAboutOurData {

    NSDictionary *dict = @{@"id":@(1)};
    NSString *sign = [ZZCRequest getSignWithDict:dict];
    sign = [NSString md5:[sign lowercaseString]];
    NSDictionary *param = @{@"timestamp":[NSString timeStr],@"sign":sign,@"id":@(1)};
    [[ZZCRequest sharedNetworkTools] POST:ZZCURL_API_NETINTRO parameters:param finished:^(id  _Nullable responseObject, NSError * _Nullable error) {
        if (error) {
            ZZCLog(@"失败-%@",error);
        }else {
            ZZCLog(@"成功-_-%@",responseObject);
            self.contentView.text = responseObject[@"data"][@"detail"];
        }
    }];
}

- (IBAction)backClick {
    [self.navigationController popViewControllerAnimated:YES];
}
@end
